package com.mmall.common;

/**
 * Created by Jillian on 2017/12/7.
 * 响应code 枚举
 */
public enum ResponseCode {
    SUCCESS(0, "SUCCESS"),
    ERROR(1, "SUCCESS"),
    ILLEGAL_ARGUMENT(2, "ILLEGAL_ARGUMENT"),
    NEED_LOGIN(10, "NEED_LOGIN");

    private final int code;
    private final String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
